package com.wanmait.baohan.service.Impl;

import com.wanmait.baohan.mapper.PostMapper;
import com.wanmait.baohan.pojo.Post;
import com.wanmait.baohan.service.PostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PostServiceImpl implements PostService {

    @Resource
    private PostMapper postMapper;
    @Override
    public List<Post> selectAll() {
        List<Post> posts = postMapper.selectAll();
        return  posts;
    }

    @Override
    public List<Post> selectFindAll() {
        List<Post> posts = postMapper.selectFindAll();
        return  posts;
    }
}
